﻿@model RMS.Models.Problem

@{
    ViewBag.Title = "Decline";
}

<h2>Decline</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Problem</legend>
        @Html.Hidden("id", Model.Id)
        <div class="editor-label">
            @Html.Label("Problrm Group")
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ProblemGroup.Name)
        </div>

        <div class="editor-label">
            @Html.Label("Product")
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Product.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.Label("Created By")
        </div>
        <div class="editor-field">
            @Model.CreateUser.Name
        </div>

        <div class="editor-label">
            @Html.Label("Risk Type")
        </div>
        <div class="editor-field">
            @Model.RiskType.Name
        </div>

        <div class="editor-label">
            @Html.Label("Causation")
        </div>
        <div class="editor-field">
            @Model.Causation
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Reason)
        </div>
        <div class="editor-field">
            @Html.TextArea("reason")
            @Html.ValidationMessageFor(model => model.Reason)
        </div>

        <p>
            <input type="submit" value="Decline" />
        </p>
    </fieldset>
}